<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>js对象bom</title>

</head>
<body>

</body>
<script>
    window.alert("hello world")
    alert("hello world")

    let flag = confirm(`hello world`);
    console.log(flag);

    var i = 0;
    setInterval(function(){
        i++;
        console.log("定时器执行了" + i + "次")
    }, 1000)

    setTimeout(function(){
        console.log("定时器执行了")
    },3000);
    console.log(location.href);

    location.href = "https://www.baidu.com";
</script>
</html>